Objects Reference

flyEngine::add_light_map

Prototype

int add_lightmap(int sx,int sy)

Parameters

Parameter Type Description
sx int x light map size (power of 2)
sy int y light map size (power of 2

Return Value

Return the light map index into the light map array for the newly cretated light map.

Remarks

This function is used add a new light map to the light map array. Dynamic objects that can use light maps use this function to allocate its light map image.